package com.zmn.mcc.admin.controller.passport;

import com.zmn.mcc.cas.web.StaffAdminService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @uthor heguanghua
 * @since 2019/06/12 15:59
 */
@Controller
@RequestMapping("/")
public class PassportListController extends PassportBaseController {

    /**
     * 首页
     */
    @RequestMapping({"index", "/"})
    public String index(HttpServletRequest request,
                        Model model) {

        model.addAttribute("staffName", StaffAdminService.currentStaff().getRealName());

        return "index";
    }


}
